import prompt from '@system.prompt';

export default {
    data: {
        pattern:{
            textColor:'#3c3e49',
            buttonColor:'#3c3e49',
            backgroundColor:'white',
            selectedColor:'#2597EB'
        },
        contentArr:[
            {
                text:'TCP',active:false,iconPath:'/common/images/TCP.png',selectedIconPath:'/common/images/TCP.png',
            },
            {
                text:'UDP',active:false,iconPath:'/common/images/UDP.png',selectedIconPath:'/common/images/UDP.png',
            },
            {
                text:'MQTT',active:false,iconPath:'/common/images/MQTT.png',selectedIconPath:'/common/images/MQTT.png',
            },
            {
                text:'WIFI',active:true,iconPath:'/common/images/WIFI.png',selectedIconPath:'/common/images/WIFI.png',
            }
        ],
        autoClose: false,
        defaultShow:true
    },
    onInit() {

    },
    circle_Click(){

    },
    menu_Item_Click(data){
        prompt.showToast({
        message: '选择了【'+data.detail.item.text+'】',
        duration: 1500,
        });
    }
}
